package com.flea.hclv.model.dao;

import com.flea.hclv.model.entity.HCar;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface HCarMapper {
    int deleteByPrimaryKey(String id);

    int insert(HCar record);

    int insertSelective(HCar record);

    HCar selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(HCar record);

    int updateByPrimaryKey(HCar record);

    List<HCar> selectAll(RowBounds rowBounds,@Param("name") String name,@Param("type") String type);

    List<HCar> selectByDeptId(RowBounds rowBounds, @Param("deptUuid") String deptUuid,@Param("name") String name,@Param("type") String type);

    int deleteByIds(@Param("idList") List<String> idList,@Param("userId") String userId);

    List<HCar> findTypeAndCarNumber(@Param("carNumber") Integer carNumber,@Param("carType")String carType,
                                    @Param("deptId")String deptId);

    List<HCar> selectByCarIds(@Param("carIds") List<String> carIds);

    List<HCar> selectByCarIdsAndPaging(RowBounds rowBounds, @Param("carIds") List<String> carIds);

    List<HCar> selectByTypeAndCarNumber(@Param("carNumber") Integer carNumber,@Param("carType")String carType,
                                        @Param("deptId")String deptId);
}